﻿
@model IEnumerable<IGrouping<Module,Resource>>
<ul class="nav nav-list dv-nav" style="padding: 0px">
    @if (Model != null)
    {
        foreach (var item in Model)
        {
        <li class="nav-header" title="点击收缩或展开" grouphead="@item.Key.Id">
            <div style="float: left; width:160px;">
            @item.Key.Name</div>
            <img class="imgAdd" src='@Url.Content("~/Content/img/jia.png")' alt=""/>
        </li>
            foreach (var listItem in item.OrderBy(m => m.Order))
            { 
        <li group="@item.Key.Id" style="display:none">
            @Html.ActionLink(listItem.Name, listItem.Action, listItem.Controller) </li>
            }
        }
    }
</ul>
